package com.thinkgem.jeesite.modules.sys.service.i;

import com.thinkgem.jeesite.modules.sys.entity.TbAgent;
import com.thinkgem.jeesite.modules.sys.entity.TbAgentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by jyy on 2016/10/17 0017.
 */
public interface TbAgentService {

    int countByExample(TbAgentExample example);

    int deleteByExample(TbAgentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbAgent record);

    int insertSelective(TbAgent record);

    List<TbAgent> selectByExample(TbAgentExample example);

    TbAgent selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbAgent record, @Param("example") TbAgentExample example);

    int updateByExample(@Param("record") TbAgent record, @Param("example") TbAgentExample example);

    int updateByPrimaryKeySelective(TbAgent record);

    int updateByPrimaryKey(TbAgent record);
    /*  根据uid查询代理商 jyy */
    TbAgent queryByUIDAgent(@Param("uid") Integer uid);
}
